package com.dstz.agilebpm.springcloud.sys;

import com.dstz.base.core.cache.ICache;
import com.dstz.base.core.cache.impl.MemoryCache;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;

/**
 * ORG模块程序入口
 *
 * @author wacxhs
 */
@EnableDiscoveryClient
@SpringBootApplication(scanBasePackages = "com.dstz")
@MapperScan("com.dstz.org.core.dao")
public class OrgApplication {


    public static void main(String[] args) {
        SpringApplication.run(OrgApplication.class, args);
    }

    @Bean(name = "cache")
    public ICache createCache() {

        return new MemoryCache();
    }

}
